﻿Public Class AddCurrentUserWindow
    Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        If Not TextBox1.Text = "" Then
            If Not SaveHelper.AccExists(TextBox1.Text) Then
                SaveHelper.AddCurrentAcc(TextBox1.Text)
                Me.Close()
            Else
                MsgBox("There is already a Account with that name!")
            End If
        Else
            Me.Close()
        End If
    End Sub
End Class
